package org.wang.generalcode.modules.sys.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 代码生成字段配置表实体类
 *
 * @author wz
 * @since 2024-08-08
 */
@Data
@Schema(description = "代码生成字段配置表")
@TableName("gen_field_config")
public class GenFieldConfig implements Serializable {

	private static final long serialVersionUID = 1L;

	@TableId(value = "id", type = IdType.AUTO)
	private Long id;
	/**
	* 关联的配置ID
	*/
	@Schema(description = "关联的配置ID")
	private Long configId;
	private String columnName;
	private String columnType;
	/**
	* 最大长度
	*/
	@Schema(description = "最大长度")
	private Integer maxLength;
	/**
	* 字段名称
	*/
	@Schema(description = "字段名称")
	private String fieldName;
	/**
	* 字段类型
	*/
	@Schema(description = "字段类型")
	private String fieldType;
	/**
	* 字段排序
	*/
	@Schema(description = "字段排序")
	private Integer fieldSort;
	/**
	* 字段描述
	*/
	@Schema(description = "字段描述")
	private String fieldComment;
	/**
	* 是否必填
	*/
	@Schema(description = "是否必填")
	private Boolean isRequired;
	/**
	* 是否在列表显示
	*/
	@Schema(description = "是否在列表显示")
	private Boolean isShowInList;
	/**
	* 是否在表单显示
	*/
	@Schema(description = "是否在表单显示")
	private Boolean isShowInForm;
	/**
	* 是否在查询条件显示
	*/
	@Schema(description = "是否在查询条件显示")
	private Boolean isShowInQuery;
	/**
	* 查询方式
	*/
	@Schema(description = "查询方式")
	private Integer queryType;
	/**
	* 表单类型
	*/
	@Schema(description = "表单类型")
	private Integer formType;
	/**
	* 字典类型(sys_dict表的code)
	*/
	@Schema(description = "字典类型(sys_dict表的code)")
	private String dictType;
	/**
	* 创建时间
	*/
	@Schema(description = "创建时间")
	private LocalDateTime createTime;
	/**
	* 更新时间
	*/
	@Schema(description = "更新时间")
	private LocalDateTime updateTime;


}
